package net.lahuobao.enums.mall.admin;

/**
 * Created by clark on 2016/9/18 0018.
 */
public enum  EMallShopSettlementStatus {
    NotSettlement {
        public int getStatus() {
            return 0;
        }
        public String getName() {
            return "未结算";
        }
        },
    Settlement {
        public int getStatus() {
            return 1;
        }

        public String getName() {
            return "已结算";
            }
        };

    public static String valueOf(int value) {
        switch (value) {
            case 0:
        return EMallShopSettlementStatus.NotSettlement.getName();
            case 1:
        return EMallShopSettlementStatus.Settlement.getName();
        }
        return null;
    }

    public static EMallShopSettlementStatus getMallShopSettlementStatus(int value) {
        switch (value) {
            case 0:
        return EMallShopSettlementStatus.NotSettlement;
            case 1:
        return EMallShopSettlementStatus.Settlement;
        }
        return null;
    }
    public abstract int getStatus();

    public abstract String getName();

}
